package com.tensquare.friend.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("tensquare-user")
public interface UserClient {

    /**
     * 增加粉丝数
     *
     * @param userid
     * @param x
     */
    @PostMapping("/user/incfans/{userid}/{x}")
    public void incFanscount(@PathVariable("userid") String userid, @PathVariable("x") Integer x);

    @PostMapping("/user/incfollow/{userid}/{x}")
    public void incFollowcount(@PathVariable("userid") String userid, @PathVariable("x") Integer x);

}
